500 |
How can I get the number of results after a filter is applied
// Click event - Occurs when the user presses and then releases the left mouse button over the list control. private void exlist1_Click(object sender) { exlist1.ClearFilter(); } //this.exlist1.Click += new exontrol.EXLISTLib.exg2antt.ClickEventHandler(this.exlist1_Click); // FilterChange event - Occurs when filter was changed. private void exlist1_FilterChange(object sender) { System.Diagnostics.Debug.Print( "Items.MatchItemCount" ); System.Diagnostics.Debug.Print( exlist1.Items.MatchItemCount.ToString() ); System.Diagnostics.Debug.Print( exlist1.FormatABC("value < 0 ? `filter applied: ` + abs(value + 1) + ` result(s)` : `no filter`",exlist1.Items.MatchItemCount,null,null).ToString() ); } //this.exlist1.FilterChange += new exontrol.EXLISTLib.exg2antt.FilterChangeEventHandler(this.exlist1_FilterChange); exlist1.BeginUpdate(); (exlist1.Columns.Add("Item") as exontrol.EXLISTLib.Column).DisplayFilterButton = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Pos") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.FilterBarPromptVisible = exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarPromptVisible; exlist1.FilterBarPromptPattern = "Item"; exlist1.EndUpdate(); |
499 |
How can I programmatically clear the control's filter
// Click event - Occurs when the user presses and then releases the left mouse button over the list control. private void exlist1_Click(object sender) { exlist1.ClearFilter(); } //this.exlist1.Click += new exontrol.EXLISTLib.exg2antt.ClickEventHandler(this.exlist1_Click); exlist1.BeginUpdate(); (exlist1.Columns.Add("Item") as exontrol.EXLISTLib.Column).DisplayFilterButton = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Pos") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.FilterBarPromptVisible = exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarPromptVisible; exlist1.FilterBarPromptPattern = "B"; exlist1.EndUpdate(); |
498 |
Is it possible to prevent closing the control's filter bar, so it is always shown (prompt-combined)
exlist1.BeginUpdate(); (exlist1.Columns.Add("Item") as exontrol.EXLISTLib.Column).DisplayFilterButton = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Pos") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.FilterBarPromptPattern = "B"; exlist1.FilterBarPromptVisible = exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarVisible | exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarPromptVisible; exontrol.EXLISTLib.Column var_Column1 = exlist1.Columns[0]; var_Column1.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exFilter; var_Column1.Filter = "Item B"; exlist1.ApplyFilter(); exlist1.EndUpdate(); |
497 |
Is it possible to prevent closing the control's filter bar, so it is always shown (prompt)
exlist1.BeginUpdate(); (exlist1.Columns.Add("Item") as exontrol.EXLISTLib.Column).DisplayFilterButton = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Pos") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.FilterBarPromptVisible = exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarPromptVisible; exlist1.FilterBarPromptPattern = "B"; exlist1.EndUpdate(); |
496 |
Is it possible to prevent closing the control's filter bar, so it is always shown
exlist1.BeginUpdate(); (exlist1.Columns.Add("Item") as exontrol.EXLISTLib.Column).DisplayFilterButton = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Pos") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.AllowSort = false; var_Column.Width = 32; var_Column.FormatColumn = "1 apos ``"; var_Column.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.FilterBarCaption = "len(value) = 0 ? `<fgcolor=808080>no filter` : value"; exlist1.FilterBarPromptVisible = exontrol.EXLISTLib.FilterBarVisibleEnum.exFilterBarVisible; exontrol.EXLISTLib.Column var_Column1 = exlist1.Columns[0]; var_Column1.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exFilter; var_Column1.Filter = "Item B"; exlist1.ApplyFilter(); exlist1.EndUpdate(); |
495 |
How can I find if the control is running in DPI mode
System.Diagnostics.Debug.Print( exlist1.FormatABC("dpi = 1 ? `normal/stretch mode` : `dpi mode`",null,null,null).ToString() ); |
494 |
I am using single selection, the question is if possible to select an item only when the user releases the mouse, as currently it selects the item as soon as the user clicks it
// SelectionChanged event - Fired after a new item is selected. private void exlist1_SelectionChanged(object sender) { System.Diagnostics.Debug.Print( "SelectionChanged" ); } //this.exlist1.SelectionChanged += new exontrol.EXLISTLib.exg2antt.SelectionChangedEventHandler(this.exlist1_SelectionChanged); exlist1.BeginUpdate(); exlist1.FreezeEvents(true); exlist1.SingleSel = true; exlist1.SelectOnRelease = true; (exlist1.Columns.Add("Column") as exontrol.EXLISTLib.Column).FormatColumn = "1 apos `A-Z`"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(""); var_Items.set_SelectItem(var_Items.Add(""),true); var_Items.Add(""); exlist1.FreezeEvents(false); exlist1.EndUpdate(); |
493 |
Is it possible to select nothing
// SelectionChanged event - Fired after a new item is selected. private void exlist1_SelectionChanged(object sender) { System.Diagnostics.Debug.Print( "SelectionChanged" ); } //this.exlist1.SelectionChanged += new exontrol.EXLISTLib.exg2antt.SelectionChangedEventHandler(this.exlist1_SelectionChanged); exlist1.BeginUpdate(); exlist1.FreezeEvents(true); exlist1.AllowSelectNothing = true; (exlist1.Columns.Add("Column") as exontrol.EXLISTLib.Column).FormatColumn = "1 apos `A-Z`"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(""); var_Items.set_SelectItem(var_Items.Add(""),true); var_Items.Add(""); exlist1.FreezeEvents(false); exlist1.EndUpdate(); |
492 |
How do I change the drop down filter icon/button (black)
exlist1.BeginUpdate(); exontrol.EXLISTLib.Appearance var_Appearance = exlist1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABXUIQAAYAQGKIcBiAKBQAGYBIJDEMgzDDAUBjKKocQTC4AIQjCK4JDKHYJRpHEZyCA8EhqGASRAFUQBYiWE4oSpLABQaK0ZwIGyRIrkGQgQ" + "gmPYDSDNU4zVIEEglBI0TDNczhNDENgtGYaJqHIYpZBcM40TKkEZoSIITZcRrOEBiRL1S0RBhGcRUHZlWzdN64LhuK47UrWdD/XhdVzXRbjfz1Oq+bxve48Br7A5yYTh" + "dr4LhOFQ3RjIL4xbIcUwGe6VZhjOLZXjmO49T69HTtOCYBEBA"); exlist1.set_Background32(exontrol.EXLISTLib.BackgroundPartEnum.exCursorHoverColumn,-1); exlist1.set_Background32(exontrol.EXLISTLib.BackgroundPartEnum.exHeaderFilterBarButton,0x1000000); exlist1.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exBackColorFilter,Color.FromArgb(0,0,1)); exlist1.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exForeColorFilter,Color.FromArgb(255,255,255)); exlist1.set_Description(exontrol.EXLISTLib.DescriptionTypeEnum.exFilterBarExclude,"<bgcolor 0><fgcolor ffffff> Exclude </fgcolor></bgcolor>"); exlist1.HeaderAppearance = exontrol.EXLISTLib.AppearanceEnum.None2; exlist1.BackColorHeader = Color.FromArgb(0,0,0); exlist1.ForeColorHeader = Color.FromArgb(255,255,255); exlist1.HeaderVisible = true; exlist1.BackColorLevelHeader = exlist1.BackColor; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Filter") as exontrol.EXLISTLib.Column); var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowExclude | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox; var_Column.DisplayFilterButton = true; var_Column.AllowSort = false; var_Column.AllowDragging = false; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("One"); var_Items.Add("Two"); var_Items.Add("Three"); exlist1.EndUpdate(); |
491 |
How do I change the drop down filter icon/button (white)
exlist1.BeginUpdate(); exontrol.EXLISTLib.Appearance var_Appearance = exlist1.VisualAppearance; var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABX8GACAADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKNYykCIRSDUJYkSZEIyjBI8ExXFqNACkGKwYgmNYiTLAcgAN" + "J0WBaGIZJ4gOT5fDKMoEDRRYADFCscwxJybQAqGQKKb+VgAVY/cTyBIAEQSKA0TDOQ5TSKWB4JPZQRBEbZMNBtBIUJquKaqShdQJCU5FdY3Xblez9P7AMBwLFEC4NQ8Y" + "NYuPhjR4dRTIMhvVAsUArFh8Zg9GZZFjmDIDT4ydBLTQwcyVIKnP5qOa6XbmPoCQDYKxZHYxPzVDa3axuL76dqCAT7XrXNy1TbNRrzQKfcJqfCbdw2YaDZLOOT3fjuI4" + "hhKaRzFAHJ+jYQ4xHuY4gHuGIXGeExqC8Tp6C+PoEm+G5ImycRgh0XwvDGa5rgOeoejyXwnFeQp2mkf5ClgBB9gCWIYAwfYAEKV58mkdwOggNArgOXY2EWLoDkKOA0mg" + "bhOGgZApgaSBIHWSYHSmbApgYThmESZYJkIeIkgeCpfliLIHgpMIcmUYYYmODAlg2SI4mWfRfGOEguDcCRjFYAJihCQhJBSDoRmONgKEcI4kFCEJhhOVYTmYnAlEAQhW" + "BMJYJGYWoWmWSR2F6F5lnkWAQhUAgpEieRWEuSYkjWGpmkmNhuhuZwJkYcocmaaYkjyEhngnUA6lEFAlAEgI="); var_Appearance.Add(1,"CP:2 -14 -4 -2 4"); exlist1.set_Background32(exontrol.EXLISTLib.BackgroundPartEnum.exHeaderFilterBarButton,0x1000000); exlist1.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exCursorHoverColumn,exlist1.BackColor); exlist1.HeaderAppearance = exontrol.EXLISTLib.AppearanceEnum.None2; exlist1.BackColorHeader = Color.FromArgb(255,255,255); exlist1.HeaderVisible = true; exlist1.HeaderHeight = 24; exlist1.BackColorLevelHeader = exlist1.BackColor; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Filter") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.AllowSort = false; var_Column.AllowDragging = false; exlist1.EndUpdate(); |
490 |
Can I display the column's multiple-lines caption vertically oriented (method 2)
exlist1.BeginUpdate(); exlist1.HeaderHeight = 48; exlist1.ColumnAutoResize = true; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("And others ..."); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.HTMLCaption = "First Column"; var_Column.HeaderVertical = true; var_Column.Width = 36; var_Column.AllowSizing = false; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column.Position = 0; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column1.HTMLCaption = "<c><b>Second Column"; var_Column1.HeaderVertical = true; var_Column1.Width = 36; var_Column1.AllowSizing = false; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column1.Position = 1; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column2.HTMLCaption = "<r>Third Column"; var_Column2.HeaderVertical = true; var_Column2.Width = 36; var_Column2.AllowSizing = false; var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column2.Position = 2; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellState(var_Items.Add("Item 1"),3,1); var_Items.set_CellState(var_Items.Add("Item 2"),2,1); var_Items.set_CellState(var_Items.Add("Item 3"),1,1); exlist1.EndUpdate(); |
489 |
Can I display the column's multiple-lines caption vertically oriented (method 1)
exlist1.BeginUpdate(); exlist1.HeaderHeight = 48; exlist1.HeaderSingleLine = false; exlist1.ColumnAutoResize = true; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("And others ..."); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("First Column") as exontrol.EXLISTLib.Column); var_Column.HeaderVertical = true; var_Column.Width = 36; var_Column.AllowSizing = false; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column.Position = 0; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("Second Column") as exontrol.EXLISTLib.Column); var_Column1.HeaderBold = true; var_Column1.HeaderVertical = true; var_Column1.Width = 36; var_Column1.AllowSizing = false; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column1.Position = 1; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("Third Column") as exontrol.EXLISTLib.Column); var_Column2.HeaderVertical = true; var_Column2.Width = 36; var_Column2.AllowSizing = false; var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,8); var_Column2.Position = 2; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellState(var_Items.Add("Item 1"),3,1); var_Items.set_CellState(var_Items.Add("Item 2"),2,1); var_Items.set_CellState(var_Items.Add("Item 3"),1,1); exlist1.EndUpdate(); |
488 |
Can I display the column's caption vertically oriented (method 2)
exlist1.BeginUpdate(); exlist1.HeaderHeight = 48; exlist1.ColumnAutoResize = true; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("And others ..."); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.HTMLCaption = "First"; var_Column.HeaderVertical = true; var_Column.Width = 20; var_Column.AllowSizing = false; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.Position = 0; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column1.HTMLCaption = "<c><b>Second"; var_Column1.HeaderVertical = true; var_Column1.Width = 20; var_Column1.AllowSizing = false; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.Position = 1; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("") as exontrol.EXLISTLib.Column); var_Column2.HTMLCaption = "<r>Third"; var_Column2.HeaderVertical = true; var_Column2.Width = 20; var_Column2.AllowSizing = false; var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column2.Position = 2; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellState(var_Items.Add("Item 1"),3,1); var_Items.set_CellState(var_Items.Add("Item 2"),2,1); var_Items.set_CellState(var_Items.Add("Item 3"),1,1); exlist1.EndUpdate(); |
487 |
Can I display the column's caption vertically oriented (method 1)
exlist1.BeginUpdate(); exlist1.HeaderHeight = 48; exlist1.ColumnAutoResize = true; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("And others ..."); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("First") as exontrol.EXLISTLib.Column); var_Column.HeaderVertical = true; var_Column.Width = 20; var_Column.AllowSizing = false; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.Position = 0; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("Second") as exontrol.EXLISTLib.Column); var_Column1.HeaderBold = true; var_Column1.HeaderVertical = true; var_Column1.Width = 20; var_Column1.AllowSizing = false; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.Position = 1; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("Third") as exontrol.EXLISTLib.Column); var_Column2.HeaderVertical = true; var_Column2.Width = 20; var_Column2.AllowSizing = false; var_Column2.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column2.Position = 2; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellState(var_Items.Add("Item 1"),3,1); var_Items.set_CellState(var_Items.Add("Item 2"),2,1); var_Items.set_CellState(var_Items.Add("Item 3"),1,1); exlist1.EndUpdate(); |
486 |
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Date") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; exontrol.EXLISTLib.Column var_Column1 = (exlist1.Columns.Add("DateTime") as exontrol.EXLISTLib.Column); var_Column1.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDateTime; var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; exontrol.EXLISTLib.Column var_Column2 = (exlist1.Columns.Add("Time") as exontrol.EXLISTLib.Column); var_Column2.SortType = exontrol.EXLISTLib.SortTypeEnum.SortTime; var_Column2.DisplayFilterButton = true; var_Column2.DisplayFilterPattern = false; var_Column2.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; var_Column2.FormatColumn = "time(value)"; exontrol.EXLISTLib.Column var_Column3 = (exlist1.Columns.Add("Numeric") as exontrol.EXLISTLib.Column); var_Column3.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column3.DisplayFilterButton = true; var_Column3.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; exontrol.EXLISTLib.Column var_Column4 = (exlist1.Columns.Add("String") as exontrol.EXLISTLib.Column); var_Column4.DisplayFilterButton = true; var_Column4.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(Convert.ToDateTime("1/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,1,Convert.ToDateTime("1/27/2010 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,var_Items.get_Caption(h,1)); var_Items.set_Caption(h,3,1); var_Items.set_Caption(h,4,var_Items.get_Caption(h,3)); h = var_Items.Add(Convert.ToDateTime("1/27/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,1,Convert.ToDateTime("1/27/2011 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,var_Items.get_Caption(h,1)); var_Items.set_Caption(h,3,11); var_Items.set_Caption(h,4,var_Items.get_Caption(h,3)); h = var_Items.Add(Convert.ToDateTime("11/2/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,1,Convert.ToDateTime("11/2/2010 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,var_Items.get_Caption(h,1)); var_Items.set_Caption(h,3,2); var_Items.set_Caption(h,4,var_Items.get_Caption(h,3)); exlist1.Columns["DateTime"].DisplayFilterDate = false; exlist1.EndUpdate(); |
485 |
How can I get ride / hide the image being dragged by OLE Drag and Drop
|
484 |
Is there an event that fires on the exList control when the order of items in the list is changed via dragging
// AllowAutoDrag event - Occurs when the user drags the item between InsertA and InsertB. private void exlist1_AllowAutoDrag(object sender,int Item,int InsertA,int InsertB,ref bool Cancel) { exontrol.EXLISTLib.Items var_Items = exlist1.Items; System.Diagnostics.Debug.Print( "After" ); System.Diagnostics.Debug.Print( var_Items.get_Caption(InsertA,0).ToString() ); System.Diagnostics.Debug.Print( "Before" ); System.Diagnostics.Debug.Print( var_Items.get_Caption(InsertB,0).ToString() ); Cancel = true; } //this.exlist1.AllowAutoDrag += new exontrol.EXLISTLib.exg2antt.AllowAutoDragEventHandler(this.exlist1_AllowAutoDrag); exlist1.BeginUpdate(); exlist1.AutoDrag = exontrol.EXLISTLib.AutoDragEnum.exAutoDragPosition; exlist1.Columns.Add("Task"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.Add("Item 2"); var_Items.Add("Item 3"); var_Items.Add("Item 4"); exlist1.EndUpdate(); |
483 |
How can I export checked items only
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; (var_Columns.Add("C1") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); (var_Columns.Add("C2") as exontrol.EXLISTLib.Column).FormatColumn = "1 index `A-Z`"; (var_Columns.Add("C3") as exontrol.EXLISTLib.Column).FormatColumn = "100 index ``"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.set_CellState(var_Items.Add("Item 2"),0,1); var_Items.set_CellState(var_Items.Add("Item 3"),0,1); exlist1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Checked Items Only:" ); System.Diagnostics.Debug.Print( exlist1.Export("","chk").ToString() ); |
482 |
How can I export a hidden column
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("C1"); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("C2") as exontrol.EXLISTLib.Column); var_Column.FormatColumn = "1 index `A-Z`"; var_Column.Visible = false; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("C3") as exontrol.EXLISTLib.Column); var_Column1.FormatColumn = "100 index ``"; var_Column1.Visible = false; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.Add("Item 2"); var_Items.Add("Item 3"); exlist1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Hidden Columns (1,2):" ); System.Diagnostics.Debug.Print( exlist1.Export("","|1,2").ToString() ); |
481 |
Is it possible to have a different alignment for parts of the cell's caption
exlist1.BeginUpdate(); exlist1.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Default") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellHAlignment(var_Items.Add("all-left"),0,exontrol.EXLISTLib.AlignmentEnum.LeftAlignment); var_Items.set_CellHAlignment(var_Items.Add("all-center"),0,exontrol.EXLISTLib.AlignmentEnum.CenterAlignment); var_Items.set_CellHAlignment(var_Items.Add("all-right"),0,exontrol.EXLISTLib.AlignmentEnum.RightAlignment); int h = var_Items.Add("left<c>center<r>right"); var_Items.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML); exlist1.EndUpdate(); |
480 |
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("MultipleLine") as exontrol.EXLISTLib.Column); var_Column.Width = 32; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exColumnResizeContiguously,true); exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("SingleLine") as exontrol.EXLISTLib.Column); var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellSingleLine,false); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("This is a bit of long text that should break the line"),1,"This is a bit of long text that should break the line"); exlist1.EndUpdate(); |
479 |
How can I hide the cell's tooltip
// ToolTip event - Fired when the control prepares the object's tooltip. private void exlist1_ToolTip(object sender,int ItemIndex,int ColIndex,ref bool Visible,ref int X,ref int Y,int CX,int CY) { System.Diagnostics.Debug.Print( "The tooltip is about to be shown" ); Visible = false; } //this.exlist1.ToolTip += new exontrol.EXLISTLib.exg2antt.ToolTipEventHandler(this.exlist1_ToolTip); exlist1.BeginUpdate(); exlist1.Columns.Add("Def"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellToolTip(var_Items.Add("Item 1"),0,"This is a bit of text that's shown when cursor hovers the item."); var_Items.set_CellToolTip(var_Items.Add("Item 2"),0,"This is a bit of text that's shown when cursor hovers the item."); var_Items.set_CellToolTip(var_Items.Add("Item 3"),0,"This is a bit of text that's shown when cursor hovers the item."); exlist1.EndUpdate(); |
478 |
How can I find out if an item is selected or unselected
// MouseMove event - Occurs when the user moves the mouse. private void exlist1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { int i = exlist1.get_ItemFromPoint(-1,-1,c,hit); exontrol.EXLISTLib.Items var_Items = exlist1.Items; System.Diagnostics.Debug.Print( var_Items.get_SelectItem(i).ToString() ); } //this.exlist1.MouseMoveEvent += new exontrol.EXLISTLib.exg2antt.MouseMoveEventHandler(this.exlist1_MouseMoveEvent); exlist1.Columns.Add("Header"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.set_SelectItem(var_Items.Add("Item 2"),true); var_Items.Add("Item 3"); |
477 |
How do I sort the index column as numeric
// AddItem event - Occurs after a new Item is inserted to Items collection. private void exlist1_AddItem(object sender,int Item) { exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellData(Item,1,Item); } //this.exlist1.AddItem += new exontrol.EXLISTLib.exg2antt.AddItemEventHandler(this.exlist1_AddItem); exlist1.BeginUpdate(); exlist1.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines; exlist1.ColumnAutoResize = true; exlist1.ShowFocusRect = false; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Next") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,4); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exHeaderPaddingLeft,4); exontrol.EXLISTLib.Column var_Column1 = (exlist1.Columns.Add("Index") as exontrol.EXLISTLib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)"; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); var_Column1.SortType = exontrol.EXLISTLib.SortTypeEnum.SortUserData; var_Column1.Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.Add("Item 2"); var_Items.Add("Item 3"); var_Items.Add("Item 4"); var_Items.Add("Item 5"); var_Items.Add("Item 6"); var_Items.Add("Item 7"); var_Items.Add("Item 8"); var_Items.Add("Item 9"); var_Items.Add("Item 10"); exlist1.EndUpdate(); |
476 |
How can I put icons/images into buttons
exlist1.BeginUpdate(); exlist1.ColumnAutoResize = true; exlist1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("C+B") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.Width = 48; var_Column.FormatColumn = "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `"; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasButton,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasButton | exontrol.EXLISTLib.DefColumnEnum.exCellHasRadioButton,true); exlist1.Columns.Add(""); exlist1.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exVLines; exlist1.DefaultItemHeight = 20; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); exlist1.EndUpdate(); |
475 |
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column
// CellButtonClick event - Fired after the user clicks the cell's button. private void exlist1_CellButtonClick(object sender,int Item,int ColIndex) { System.Diagnostics.Debug.Print( "CellButtonClick" ); System.Diagnostics.Debug.Print( Item.ToString() ); } //this.exlist1.CellButtonClick += new exontrol.EXLISTLib.exg2antt.CellButtonClickEventHandler(this.exlist1_CellButtonClick); // CellStateChanged event - Fired after cell's state is changed. private void exlist1_CellStateChanged(object sender,int Item,int ColIndex) { System.Diagnostics.Debug.Print( "CellStateChanged" ); System.Diagnostics.Debug.Print( Item.ToString() ); } //this.exlist1.CellStateChanged += new exontrol.EXLISTLib.exg2antt.CellStateChangedEventHandler(this.exlist1_CellStateChanged); exlist1.BeginUpdate(); exlist1.ColumnAutoResize = true; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Column.FormatColumn = "1 index ``"; exontrol.EXLISTLib.Column var_Column1 = (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "` `"; var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasButton,true); var_Column1.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasButton | exontrol.EXLISTLib.DefColumnEnum.exCellHasRadioButton,true); exlist1.Columns.Add(""); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); var_Items.Add(""); exlist1.EndUpdate(); |
474 |
Does filtering work with umlauts / accents characters
|
473 |
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
|
472 |
How can I align captions of items with checkbox, with items with no checkbox
exlist1.BeginUpdate(); exlist1.Columns.Add("Default"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_CellImages(var_Items.Add(0),0,"1"); var_Items.set_CellHasCheckBox(var_Items.Add(1),0,true); var_Items.set_CellImages(var_Items.Add(2),0,"1"); exlist1.EndUpdate(); |
471 |
How do I programmatically scroll the control (method 2)
|
470 |
How do I programmatically scroll the control (method 1)
|
469 |
How can I decode the Layout property
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("C1"); (var_Columns.Add("C2") as exontrol.EXLISTLib.Column).Position = 1; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("SubItem 1.1"),1,"SubItem 1.2"); var_Items.set_Caption(var_Items.Add("SubItem 2.1"),1,"SubItem 2.2"); exlist1.Columns["C2"].SortOrder = exontrol.EXLISTLib.SortOrderEnum.SortDescending; exlist1.EndUpdate(); System.Diagnostics.Debug.Print( "Encoded:" ); System.Diagnostics.Debug.Print( exlist1.Layout ); // Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint(); System.Diagnostics.Debug.Print( "Decoded: " ); System.Diagnostics.Debug.Print( var_Print.get_Decode64TextW(exlist1.Layout) ); |
468 |
Does the title of the cell's tooltip supports HTML format
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.Caption = ""; var_Column.HTMLCaption = "Column"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("tooltip w/h different title"); var_Items.set_CellToolTip(h,0,"<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit" + "le centered with a different color."); exlist1.EndUpdate(); |
467 |
How do I specify a different title for the cell's tooltip
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.Caption = "This is the title"; var_Column.HTMLCaption = "Column"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("tooltip w/h different title"); var_Items.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell."); exlist1.EndUpdate(); |
466 |
The cell's tooltip displays the column's caption in its title. How can I get ride of that
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("tooltip w/h caption"); var_Items.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title."); var_Items.set_Caption(h,1,"tooltip no caption"); var_Items.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title."); exontrol.EXLISTLib.Column var_Column = exlist1.Columns["C2"]; var_Column.HTMLCaption = var_Column.Caption; var_Column.Caption = ""; exlist1.EndUpdate(); |
465 |
When you click the cell it takes some time before the edit box appears, can this delay be removed
// Click event - Occurs when the user presses and then releases the left mouse button over the list control. private void exlist1_Click(object sender) { int h = exlist1.get_ItemFromPoint(-1,-1,ColIndex,HitTestInfo); exlist1.Items.Edit(h,ColIndex); } //this.exlist1.Click += new exontrol.EXLISTLib.exg2antt.ClickEventHandler(this.exlist1_Click); exlist1.AllowEdit = true; exlist1.Columns.Add("Default"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(""); var_Items.Add("Edit"); var_Items.Add(""); |
464 |
How can I programmatically show the column's filter
|
463 |
I want to be able to click on one of the headers, and sort by other column. How can I do that
// ColumnClick event - Fired after the user clicks on column's header. private void exlist1_ColumnClick(object sender,exontrol.EXLISTLib.Column Column) { // Column.SortOrder = 1 exlist1.SortOnClick = exontrol.EXLISTLib.SortOnClickEnum.exDefaultSort; exlist1.Columns["Sort"].SortOrder = exontrol.EXLISTLib.SortOrderEnum.SortAscending; exlist1.SortOnClick = exontrol.EXLISTLib.SortOnClickEnum.exUserSort; } //this.exlist1.ColumnClick += new exontrol.EXLISTLib.exg2antt.ColumnClickEventHandler(this.exlist1_ColumnClick); exlist1.BeginUpdate(); exlist1.SortOnClick = exontrol.EXLISTLib.SortOnClickEnum.exUserSort; exlist1.Columns.Add("Items"); (exlist1.Columns.Add("Sort") as exontrol.EXLISTLib.Column).Visible = false; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("Item 1 (3)"),1,3); var_Items.set_Caption(var_Items.Add("Item 2 (1)"),1,1); var_Items.set_Caption(var_Items.Add("Item 3 (2)"),1,2); exlist1.EndUpdate(); |
462 |
How can I sort by two-columns, one by date and one by time
exlist1.BeginUpdate(); exlist1.SingleSort = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; (var_Columns.Add("Index") as exontrol.EXLISTLib.Column).FormatColumn = "1 index ``"; (var_Columns.Add("Date") as exontrol.EXLISTLib.Column).SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Time") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortTime; var_Column.FormatColumn = "time(value)"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.Add(0); var_Items.set_Caption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_Caption(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); exlist1.Layout = "multiplesort=\"C1:1 C2:1\""; exlist1.EndUpdate(); |
461 |
How can I connect to a DBF file
|
460 |
Does your control supports scrolling by touching the screen
|
459 |
How can I enlarge the size of the control's scroll bars, for using on touch screens
exlist1.ScrollBars = exontrol.EXLISTLib.ScrollBarsEnum.DisableBoth; exlist1.ScrollWidth = 32; exlist1.ScrollHeight = 32; exlist1.ScrollButtonHeight = 32; exlist1.ScrollButtonWidth = 32; |
458 |
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange
// CellStateChanged event - Fired after cell's state is changed. private void exlist1_CellStateChanged(object sender,int Item,int ColIndex) { exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(Item,2,var_Items.get_CellState(Item,0)); } //this.exlist1.CellStateChanged += new exontrol.EXLISTLib.exg2antt.CellStateChangedEventHandler(this.exlist1_CellStateChanged); exlist1.BeginUpdate(); exlist1.ShowFocusRect = false; exlist1.MarkSearchColumn = false; exlist1.SelBackMode = exontrol.EXLISTLib.BackModeEnum.exTransparent; exontrol.EXLISTLib.ConditionalFormat var_ConditionalFormat = exlist1.ConditionalFormats.Add("%2 != 0",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ForeColor = Color.FromArgb(255,0,0); var_ConditionalFormat.ApplyTo = exontrol.EXLISTLib.FormatApplyToEnum.exFormatToItems; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.Width = 16; var_Column.AllowSizing = false; exlist1.Columns.Add("Information"); (exlist1.Columns.Add("Hidden") as exontrol.EXLISTLib.Column).Visible = false; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add(""),1,"This is a bit of text associated"); int h = var_Items.Add(""); var_Items.set_Caption(h,1,"This is a bit of text associated"); var_Items.set_CellState(h,0,1); var_Items.set_Caption(var_Items.Add(""),1,"This is a bit of text associated"); exlist1.EndUpdate(); |
457 |
How can I display the caption bellow to picture
exlist1.BeginUpdate(); exlist1.ScrollBySingleLine = true; exlist1.set_HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); exlist1.set_HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); exlist1.Columns.Add("Default"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("<c><img>p1</img><br><c>your caption1"); var_Items.set_CellSingleLine(h,0,exontrol.EXLISTLib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML); h = var_Items.Add("<c><img>p2</img><br><c>your caption2"); var_Items.set_CellSingleLine(h,0,exontrol.EXLISTLib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CaptionFormat(h,0,exontrol.EXLISTLib.CaptionFormatEnum.exHTML); exlist1.EndUpdate(); |
456 |
How can I add a vertical padding
exlist1.BeginUpdate(); exlist1.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Padding") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,6); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingRight,6); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingTop,6); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingBottom,6); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("padding"); var_Items.Add("padding"); exlist1.EndUpdate(); |
455 |
How do you embed HTML options into the anchor click string
// AnchorClick event - Occurs when an anchor element is clicked. private void exlist1_AnchorClick(object sender,string AnchorID,string Options) { System.Diagnostics.Debug.Print( AnchorID.ToString() ); System.Diagnostics.Debug.Print( Options.ToString() ); } //this.exlist1.AnchorClick += new exontrol.EXLISTLib.exg2antt.AnchorClickEventHandler(this.exlist1_AnchorClick); exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; (var_Columns.Add("Car") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("<a mazda_1;options for 1>Mazda <b>1</b></a>"); var_Items.Add("<a mazda_2;options for 2>Mazda <b>2</b></a>"); var_Items.Add("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>"); var_Items.Add("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>"); exlist1.EndUpdate(); |
454 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)
exlist1.BeginUpdate(); exlist1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e" + "gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" + "LC8Mw3BDvYDkOAABAIgI="); exlist1.SelBackColor32 = 0x1fffffe; exlist1.ShowFocusRect = false; exlist1.Columns.Add("Items"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_ItemBackColor(var_Items.Add("red"),Color.FromArgb(255,0,0)); var_Items.set_ItemBackColor(var_Items.Add("blue"),Color.FromArgb(0,0,255)); var_Items.set_ItemBackColor(var_Items.Add("green"),Color.FromArgb(0,255,0)); exlist1.EndUpdate(); |
453 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)
|
452 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)
exlist1.BeginUpdate(); exlist1.SelBackColor = exlist1.BackColor; exlist1.SelForeColor = exlist1.ForeColor; exlist1.ShowFocusRect = true; exlist1.Columns.Add("Items"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_ItemBackColor(var_Items.Add("red"),Color.FromArgb(255,0,0)); var_Items.set_ItemBackColor(var_Items.Add("blue"),Color.FromArgb(0,0,255)); var_Items.set_ItemBackColor(var_Items.Add("green"),Color.FromArgb(0,255,0)); exlist1.EndUpdate(); |
451 |
I am using the FormatColumn property, but is it also possible to have a blank field when the value is '0'. I've tried the 'leading zero' flag in the FormatColumn, but that did not work
|
450 |
Do you have a VB sample on how to use .FormatColumn to show this number '123456789' like '123,456,789'
|
449 |
Is it possible to change the image while do OLE Drag and Drop operations
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events. exlist1.Columns.Add("Default"); exlist1.Items.Add("Item 1"); exlist1.Items.Add("Item 2"); exlist1.OLEDropMode = exontrol.EXLISTLib.exOLEDropModeEnum.exOLEDropManual; exlist1.set_HTMLPicture("OLEDragDropImage","C:\\Program Files\\Exontrol\\ExList\\Sample\\VB\\UNICODE\\unicode.jpg"); |
448 |
Is it possible to change the image while do OLE Drag and Drop operations
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events. exlist1.Columns.Add("Default"); exlist1.Items.Add("Item 1"); exlist1.Items.Add("Item 2"); exlist1.OLEDropMode = exontrol.EXLISTLib.exOLEDropModeEnum.exOLEDropManual; exlist1.VisualAppearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\EBN\\xpbselIcon.ebn"); exlist1.set_Background32(exontrol.EXLISTLib.BackgroundPartEnum.exDragDropAfter,0x1000000); exlist1.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exDragDropBefore,Color.FromArgb(255,255,255)); |
447 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
|
446 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image
exlist1.BeginUpdate(); exlist1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png"); exlist1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png"); exlist1.HeaderHeight = 24; exlist1.DefaultItemHeight = 48; exlist1.DrawGridLines = (exontrol.EXLISTLib.GridLinesEnum)0xfffffffc | exontrol.EXLISTLib.GridLinesEnum.exVLines; exlist1.GridLineColor = Color.FromArgb(240,240,240); exlist1.SelBackMode = exontrol.EXLISTLib.BackModeEnum.exTransparent; exlist1.ColumnAutoResize = false; exlist1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExList\\Sample\\Access\\SAMPLE.ACCDB",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); exlist1.DataSource = (rs as ADODB.Recordset); exlist1.Columns[0].set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exlist1.Columns[0].FormatColumn = "value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`"; exlist1.Columns[0].Width = 112; exlist1.AutoDrag = exontrol.EXLISTLib.AutoDragEnum.exAutoDragCopyImage; exlist1.SingleSel = false; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_SelectItem(1,true); var_Items.set_SelectItem(2,true); var_Items.set_SelectItem(3,true); exlist1.EndUpdate(); |
445 |
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text
|
444 |
How can I change the row's position to another, by drag and drop. Is it possible
|
443 |
Does your control support subscript or superscript, in HTML captions
(exlist1.Columns.Add("Column") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exlist1.Items.Add("<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1"); |
442 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)
|
441 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)
|
440 |
Is there any public method to export the selected data
exlist1.BeginUpdate(); exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("C1"); (var_Columns.Add("C2") as exontrol.EXLISTLib.Column).FormatColumn = "1 index `A-Z`"; (var_Columns.Add("C3") as exontrol.EXLISTLib.Column).FormatColumn = "100 index ``"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.set_SelectItem(var_Items.Add("Item 2"),true); var_Items.Add("Item 3"); exlist1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Selected Items Only:" ); System.Diagnostics.Debug.Print( exlist1.Export("","sel").ToString() ); |
439 |
How can I change the visual aspect of the links in the sort bar
|
438 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exFilter; var_Column.Filter = "MAZDA"; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXLISTLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exPattern; var_Column1.Filter = "AIR BAG"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("Mazda"),1,"Air Bag"); var_Items.set_Caption(var_Items.Add("Toyota"),1,"Air Bag,Air condition"); var_Items.set_Caption(var_Items.Add("Ford"),1,"Air condition"); var_Items.set_Caption(var_Items.Add("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_Caption(var_Items.Add("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_Caption(var_Items.Add("Mazda"),1,"ABS,ESP"); exlist1.ApplyFilter(); exlist1.EndUpdate(); |
437 |
How can I have a case-sensitive filter
exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXLISTLib.FilterTypeEnum.exFilter; var_Column.Filter = "Mazda"; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXLISTLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXLISTLib.FilterTypeEnum.exPattern; var_Column1.Filter = "Air Bag"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("Mazda"),1,"Air Bag"); var_Items.set_Caption(var_Items.Add("Toyota"),1,"Air Bag,Air condition"); var_Items.set_Caption(var_Items.Add("Ford"),1,"Air condition"); var_Items.set_Caption(var_Items.Add("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_Caption(var_Items.Add("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_Caption(var_Items.Add("Mazda"),1,"ABS,ESP"); exlist1.ApplyFilter(); exlist1.EndUpdate(); |
436 |
I have several columns, but noticed that the filter is using AND between columns, but I need OR clause for filtering. Is it possible
|
435 |
Is it possible exclude the dates being selected in the drop down filter window
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Date") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowExclude | exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exNoItems; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); exlist1.EndUpdate(); |
434 |
How can I display a calendar control inside the drop down filter window
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Date") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox | exontrol.EXLISTLib.FilterListEnum.exNoItems; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); exlist1.EndUpdate(); |
433 |
Is it possible to include the dates as checkb-boxes in the drop down filter window
|
432 |
How can I filter items for dates before a specified date
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Dates") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = true; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exNoItems; var_Column.Filter = "to 12/27/2010"; var_Column.FilterType = exontrol.EXLISTLib.FilterTypeEnum.exDate; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); exlist1.ApplyFilter(); exlist1.EndUpdate(); |
431 |
Is it possible to filter dates
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Dates") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = true; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exNoItems; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.Add(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); exlist1.EndUpdate(); |
430 |
Is it possible to change the Exclude field name to something different, in the drop down filter window
exlist1.BeginUpdate(); exlist1.set_Description(exontrol.EXLISTLib.DescriptionTypeEnum.exFilterBarExclude,"Leaving out"); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Items") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exShowExclude | exontrol.EXLISTLib.FilterListEnum.exShowFocusItem | exontrol.EXLISTLib.FilterListEnum.exShowCheckBox; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("Root 1"); var_Items.Add("Child 1"); var_Items.Add("Child 2"); h = var_Items.Add("Root 2"); var_Items.Add("Child 1"); exlist1.EndUpdate(); |
429 |
How can I display the Exclude field in the drop down filter window
|
428 |
Is it possible to show and ensure the focused item from the control, in the drop down filter window
|
427 |
Is it possible to show only blanks items with no listed items from the control
|
426 |
How can I include the blanks items in the drop down filter window
|
425 |
How can I select multiple items in the drop down filter window, using check-boxes
|
424 |
Is it possible to allow a single item being selected in the drop down filter window
|
423 |
How can I display no (All) item in the drop down filter window
|
422 |
Is it possible to display no items in the drop down filter window, so only the pattern is visible
exlist1.BeginUpdate(); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Items") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = true; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exNoItems; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("Root 1"); var_Items.Add("Child 1"); var_Items.Add("Child 2"); h = var_Items.Add("Root 2"); var_Items.Add("Child 1"); var_Items.Add("Child 2"); exlist1.EndUpdate(); |
421 |
How can I sort the value gets listed in the drop down filter window
exlist1.MarkSearchColumn = false; exlist1.set_Description(exontrol.EXLISTLib.DescriptionTypeEnum.exFilterBarAll,""); exlist1.set_Description(exontrol.EXLISTLib.DescriptionTypeEnum.exFilterBarBlanks,""); exlist1.set_Description(exontrol.EXLISTLib.DescriptionTypeEnum.exFilterBarNonBlanks,""); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("P1") as exontrol.EXLISTLib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXLISTLib.FilterListEnum.exSortItemsDesc; exontrol.EXLISTLib.Column var_Column1 = (exlist1.Columns.Add("P2") as exontrol.EXLISTLib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.FilterList = exontrol.EXLISTLib.FilterListEnum.exSortItemsAsc; exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("Z3"); var_Items.set_Caption(h,1,"C"); var_Items.set_Caption(var_Items.Add("Z1"),1,"B"); var_Items.set_Caption(var_Items.Add("Z2"),1,"A"); |
420 |
How can I add or change the padding (spaces) for captions in the control's header
exlist1.BeginUpdate(); (exlist1.Columns.Add("Padding-Left") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exHeaderPaddingLeft,18); exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Padding-Right") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exHeaderPaddingRight,18); var_Column.HeaderAlignment = exontrol.EXLISTLib.AlignmentEnum.RightAlignment; exlist1.EndUpdate(); |
419 |
Do you have any plans to add cell spacing and cell padding to the cells
exlist1.BeginUpdate(); exlist1.DrawGridLines = (exontrol.EXLISTLib.GridLinesEnum)0xfffffffc | exontrol.EXLISTLib.GridLinesEnum.exVLines; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Padding-Left") as exontrol.EXLISTLib.Column); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellPaddingLeft,18); (exlist1.Columns.Add("No-Padding") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellHasCheckBox,true); (exlist1.Columns.Add("Empty") as exontrol.EXLISTLib.Column).Position = 0; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_Caption(var_Items.Add("Item A.1"),1,"Item A.2"); var_Items.set_Caption(var_Items.Add("Item B.1"),1,"Item B.2"); var_Items.set_Caption(var_Items.Add("Item C.1"),1,"Item C.2"); exlist1.EndUpdate(); |
418 |
Is it possible display numbers in the same format no matter of regional settings in the control panel
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default positive)'"); h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); h = var_Items.Add(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default negative)'"); h = var_Items.Add(-100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); exlist1.EndUpdate(); |
417 |
Is it possible to add a 0 for numbers less than 1 instead .7 to show 0.8
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(0.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(0.27); var_Items.set_FormatCell(h,0,"(value format '|||||0') + ' <fgcolor=808080>(Display no leading zeros)'"); exlist1.EndUpdate(); |
416 |
How can I specify the format for negative numbers
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(-100000.27); var_Items.set_FormatCell(h,0,"(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"); exlist1.EndUpdate(); |
415 |
Is it possible to change the grouping character when display numbers
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '|||-') + ' <fgcolor=808080>(grouping character is -)'"); exlist1.EndUpdate(); |
414 |
How can I display numbers with 2 digits in each group
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(100000.27); var_Items.set_FormatCell(h,0,"(value format '||2') + ' <fgcolor=808080>(grouping by 2 digits)'"); exlist1.EndUpdate(); |
413 |
How can I display my numbers using a different decimal separator
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format '|;') + ' <fgcolor=808080>(decimal separator is <b>;</b>)'"); exlist1.EndUpdate(); |
412 |
Is it possible to display the numbers using 3 (three) digits
exlist1.BeginUpdate(); (exlist1.Columns.Add("Def") as exontrol.EXLISTLib.Column).set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format '3') + ' <fgcolor=808080>(3 digits)'"); h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format 2) + ' <fgcolor=808080>(2 digits)'"); h = var_Items.Add(100.27); var_Items.set_FormatCell(h,0,"(value format 1) + ' <fgcolor=808080>(1 digit)'"); exlist1.EndUpdate(); |
411 |
Is it possible to format numbers
exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exlist1.SelBackColor = exlist1.BackColor; exlist1.SelForeColor = exlist1.ForeColor; exlist1.ShowFocusRect = true; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("Name"); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("A") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 36; var_Column.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("B") as exontrol.EXLISTLib.Column); var_Column1.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column1.AllowSizing = false; var_Column1.Width = 36; var_Column1.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("C") as exontrol.EXLISTLib.Column); var_Column2.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column2.AllowSizing = false; var_Column2.Width = 36; var_Column2.FormatColumn = "len(value) ? value + ' ='"; exontrol.EXLISTLib.Column var_Column3 = (var_Columns.Add("A+B+C") as exontrol.EXLISTLib.Column); var_Column3.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column3.Width = 64; var_Column3.ComputedField = "dbl(%1)+dbl(%2)+dbl(%3)"; var_Column3.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column3.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; int h = var_Items.Add("Item"); var_Items.set_CaptionFormat(h,4,exontrol.EXLISTLib.CaptionFormatEnum.exComputedField); h = var_Items.Add("Item 1"); var_Items.set_Caption(h,1,7); var_Items.set_Caption(h,2,3); var_Items.set_Caption(h,3,1); h = var_Items.Add("Item 2"); var_Items.set_Caption(h,1,-2); var_Items.set_Caption(h,2,-2); var_Items.set_Caption(h,3,-4); h = var_Items.Add("Item 3"); var_Items.set_Caption(h,1,2); var_Items.set_Caption(h,2,2); var_Items.set_Caption(h,3,-4); exlist1.EndUpdate(); |
410 |
Is it possible background color displayed when the mouse passes over an item
exlist1.BeginUpdate(); exlist1.Columns.Add("Def"); exlist1.HotBackColor = Color.FromArgb(0,0,128); exlist1.HotForeColor = Color.FromArgb(255,255,255); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item A"); var_Items.Add("Item B"); var_Items.Add("Item C"); exlist1.EndUpdate(); |
409 |
Is it possible to specify the cell's value but still want to display some formatted text instead the value
exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("Name"); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Values") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 64; var_Column.FormatColumn = "((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_FormatCell(var_Items.Add("Item A"),1,"`<none>`"); var_Items.set_Caption(var_Items.Add("Item 1"),1,10); var_Items.set_Caption(var_Items.Add("Item 2"),1,15); var_Items.set_Caption(var_Items.Add("Item 3"),1,25); exlist1.EndUpdate(); |
408 |
I am using the FormatColumn to display the current currency, but would like hide some values. Is it possible
exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("Name"); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Values") as exontrol.EXLISTLib.Column); var_Column.SortType = exontrol.EXLISTLib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 64; var_Column.FormatColumn = "((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.set_FormatCell(var_Items.Add("Item A"),1," "); var_Items.set_Caption(var_Items.Add("Item 1"),1,10); var_Items.set_Caption(var_Items.Add("Item 2"),1,15); var_Items.set_Caption(var_Items.Add("Item 3"),1,25); exlist1.EndUpdate(); |
407 |
I am using the FormatColumn to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings
// SelectionChanged event - Fired after a new item is selected. private void exlist1_SelectionChanged(object sender) { exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.ClearItemBackColor(-1); var_Items.set_ItemBackColor(var_Items.get_SelectedItem(0),Color.FromArgb(128,255,255)); } //this.exlist1.SelectionChanged += new exontrol.EXLISTLib.exg2antt.SelectionChangedEventHandler(this.exlist1_SelectionChanged); exlist1.BeginUpdate(); exlist1.MarkSearchColumn = false; exlist1.SelForeColor = exlist1.ForeColor; exlist1.SelBackColor = exlist1.BackColor; exlist1.ShowFocusRect = false; exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("Format") as exontrol.EXLISTLib.Column); var_Column.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add(10); var_Items.Add(-8); exlist1.EndUpdate(); |
406 |
Is it possible to change the height for all items at once
exlist1.BeginUpdate(); exlist1.Columns.Add("Items"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.Add("Item 2"); var_Items.Add("Item 3"); var_Items.Add("Item 4"); exlist1.EndUpdate(); exlist1.DefaultItemHeight = 12; exlist1.Items.set_ItemHeight(-1,12); |
405 |
How can I change the shape of the line to be shown when user drag and drop data over the control
|
404 |
How can I highlight the item from cursor when the user drag and drop data over the control
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events. exlist1.OLEDropMode = exontrol.EXLISTLib.exOLEDropModeEnum.exOLEDropManual; exlist1.set_Background(exontrol.EXLISTLib.BackgroundPartEnum.exListOLEDropPosition,Color.FromArgb(1,0,0)); exlist1.Columns.Add("Default"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("Item 1"); var_Items.Add("Item 2"); |
403 |
How can I start drag and drop items
|
402 |
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares
exontrol.EXLISTLib.Columns var_Columns = exlist1.Columns; var_Columns.Add("Value"); exontrol.EXLISTLib.Column var_Column = (var_Columns.Add("CellSingleLine = False") as exontrol.EXLISTLib.Column); var_Column.ComputedField = "%0"; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCellSingleLine,false); exontrol.EXLISTLib.Column var_Column1 = (var_Columns.Add("FormatColumn/replace CRLF") as exontrol.EXLISTLib.Column); var_Column1.ComputedField = "%0"; var_Column1.FormatColumn = "value replace `\\r\\n` with ``"; exontrol.EXLISTLib.Column var_Column2 = (var_Columns.Add("FormatColumn/replace TAB,CRLF") as exontrol.EXLISTLib.Column); var_Column2.ComputedField = "%0"; var_Column2.FormatColumn = "(value replace `\\t` with ``) replace `\\r\\n` with ``"; exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("a\\ta\\r\\nb\\tb"); |
401 |
The Column.Alignment property does not seem to work for cells with images in them. What can be done
exlist1.BeginUpdate(); exlist1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exlist1.DrawGridLines = exontrol.EXLISTLib.GridLinesEnum.exAllLines; exlist1.HeaderHeight = 24; exlist1.DefaultItemHeight = 24; exontrol.EXLISTLib.Column var_Column = (exlist1.Columns.Add("Image") as exontrol.EXLISTLib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Column.HTMLCaption = "<img>1</img>"; var_Column.HeaderAlignment = exontrol.EXLISTLib.AlignmentEnum.CenterAlignment; var_Column.Alignment = exontrol.EXLISTLib.AlignmentEnum.CenterAlignment; var_Column.set_Def(exontrol.EXLISTLib.DefColumnEnum.exCaptionFormat,1); exlist1.Columns.Add("Rest"); exontrol.EXLISTLib.Items var_Items = exlist1.Items; var_Items.Add("<img>1</img>"); var_Items.Add("<img>2</img>"); var_Items.Add("<img>3</img>"); exlist1.EndUpdate(); |